package com.xike.micromemberserver.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.Date;

/**
 * @author
 * @date 2021-04-28 19:02
 * Description：
 */
@Data
public class BooksEntity implements Serializable {
    private int id;
    @NotNull
    private String uploader;
    @NotNull
    private String bookName;
    @NotNull
    private String author;
    @NotNull
    private String bookType;
    @NotNull
    private String description;
    @NotNull
    private String image;
    @NotNull
    private String src;
    @JsonFormat(pattern="yyyy-MM-dd")
    @JSONField(format = "yyyy-MM-dd")
    private Date createTime;

    private int status;

    private int visits;

}
